import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useChannelStore = defineStore('channel', () => {
    // activeId => ref
    const activeId = ref(0)
    // 切换频道 => 方法
    const changeActiveId = (id: number) => {
        activeId.value = id
    }
    return {
        activeId,
        changeActiveId
    }
})